<template>
	<view class="page">
		<view class="itembox u-font-28 flex-between u-radius-14" v-for="i in peoplelist">
			<text>管理员：{{i.name}}</text>
			<view class="del u-radius-10 " v-if="!i.is_sel">
				删除
			</view>
			<view class="role u-radius-5" @click.stop="show=true" v-else >
				退出
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				peoplelist:[]
			};
		},
		onLoad(op) {
			this.init(op.id)
		},
		methods:{
			init(community_unit_id){
				//【用户管理】人员信息
				this.$api.get('/user_house/manager',{community_unit_id}).then(res=>{
					this.peoplelist = res.data
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
.page{
	background-color: #D7E0FB;
	min-height: calc(100vh - var(--window-top) - var(--window-bottom));
	box-sizing: border-box;
	padding: 30rpx;
	.itembox{
		margin:  20rpx auto;
		background-color: #fff;
		padding: 20rpx;
		width: 666rpx;
		.del{
			background-color: #F6C9CE;
			color: #B03B34;
			padding: 10rpx 20rpx;
		}
		.role {
			background-color: #E2F2FF;
			padding: 2px 8px;
			color: #409EFF;
		}
	}
}
</style>
